<template>
<!--  公司信息组件-->
  <el-dialog title="详情" :visible.sync="visible" @close="$emit('update:visible', false)" destroy-on-close>
    <el-form :model="content" label-width="120px" inline label-position="left">
      <el-form-item prop="id" label="ID">
        <div class="userCk">
          {{content.id}}
        </div>
      </el-form-item>
      <el-form-item prop="name" label="公司名称">
        <div class="userCk">
          {{content.name}}
        </div>
      </el-form-item>
      <el-form-item prop="pid" label="上级ID">
        <div class="userCk">
          {{content.pid}}
        </div>
      </el-form-item>
      <el-form-item prop="parentName" label="上级公司名称">
        <div class="userCk">
          {{content.parentName}}
        </div>
      </el-form-item>
      <el-form-item prop="createDate" label="创建时间">
        <div class="userCk">
          {{content.createDate}}
        </div>
      </el-form-item>
    </el-form>
    <template slot="footer">
      <el-button @click="$emit('update:visible', false)">取消</el-button>
    </template>
  </el-dialog>
</template>
<script>
import {getDictLabel} from "@/utils";

export default {
  name: 'ComDepartmentList',
  data() {
    return {}
  },
  props: {
    content:Object,
    visible:Boolean
  },
  methods: {
    getDictLabel
  }
}
</script>
<style>
  .userCk{
    width: 260px;
    font-weight: 700;
  }
</style>
